<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>el与data的两种写法</title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
     <div id = "root">
        <h1>你好，{{name}}</h1>
     </div>
</body>
  <script type="text/javascript">
        new Vue({
            el:"#root",
            data(){
                console.log('@@@',this)
                return{
                    name:'尚硅谷'
                }
            }
        })
  </script>
</html>